SDK/J Authentication Package ver1.0
RICOH Confidential

jp.co.ricoh.dsdk.scard.option.file
Class FilePath

java.lang.Object
  extended byjp.co.ricoh.dsdk.scard.option.file.FilePath
All Implemented Interfaces:
SecurityDomain

public class FilePath
extends java.lang.Object
implements SecurityDomain

The path of a file or a directory on the card.


Constructor Summary
FilePath()
           Constructs a FilePath object with a null path.
FilePath(FileID id)
           Constructs a FilePath object from a FileID.
FilePath(FileID[] ids)
           Constructs a FilePath object from an array of FileID.
FilePath(java.lang.String path, char delim)
          .
 
Method Summary
 void append(FileID id)
           Appends the given FileID at the end of this FilePath.
protected  java.lang.Object clone()
           
 boolean equals(java.lang.Object object)
           
 FileID getFileID(int index)
           Returns the FileID with the given index.
 int hashCode()
           
 void insert(int index, FileID id)
           Inserts the given FileID at the given index.
 java.util.Iterator iterator()
           Returns an Iterator of the FileIDs which compose this FilePath.
 void remove()
           Removes the FileID at the end of this FildPath.
 void remove(int index)
           Removes the FildID at the given index.
 int size()
           Returns the number of the FileIDs which compose this FilePath.
 FileID[] toArray()
           Returns an array of the fileIDs which compose this FilePath.
 java.lang.String toString()
           Returns FileIDs which compose this FilePath as a hexdecimal string delimited by a colon.
 java.lang.String toString(char delim)
           Returns FileIDs which compose this FilePath as a hexdecimal string delimited by the given delimiter character.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilePath

public FilePath()
Constructs a FilePath object with a null path.


FilePath

public FilePath(FileID id)
Constructs a FilePath object from a FileID.

Parameters:
id - the FileID.

FilePath

public FilePath(FileID[] ids)
Constructs a FilePath object from an array of FileID.

Parameters:
ids - an array of FileID.

FilePath

public FilePath(java.lang.String path,
                char delim)
. Constructs a FilePath from a String.
The String is the sequence of hexadecimal string represented FileIDs delimited by a delimiter character.
ex.
 String path = ":3f00:3f01:0001";
 FilePath filePath = new FilePath(path, ':');
 

Parameters:
path - the FilePath as a string.
delim - the delimiter character.
Method Detail

iterator

public java.util.Iterator iterator()
Returns an Iterator of the FileIDs which compose this FilePath.

Returns:
the Iterator of the FileIDs.

toArray

public FileID[] toArray()
Returns an array of the fileIDs which compose this FilePath.

Returns:
the array of the FileIDs.

getFileID

public FileID getFileID(int index)
Returns the FileID with the given index.

Parameters:
index - the index.
Returns:
the FileID with the given index.

append

public void append(FileID id)
Appends the given FileID at the end of this FilePath.

Parameters:
id -

insert

public void insert(int index,
                   FileID id)
Inserts the given FileID at the given index.

Parameters:
index - the index.
id - the FileID to be appended.

remove

public void remove()
Removes the FileID at the end of this FildPath.


remove

public void remove(int index)
Removes the FildID at the given index.

Parameters:
index - the index.

size

public int size()
Returns the number of the FileIDs which compose this FilePath.


toString

public java.lang.String toString()
Returns FileIDs which compose this FilePath as a hexdecimal string delimited by a colon.

Returns:
FileIDs as a hexadecimal string delimited by a colon.

toString

public java.lang.String toString(char delim)
Returns FileIDs which compose this FilePath as a hexdecimal string delimited by the given delimiter character.

Parameters:
delim - the delimiter character.
Returns:
FileIDs as a hexadecimal string delimited by the given delimiter character.

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()

SDK/J Authentication Package ver1.0
RICOH Confidential